package com.ruoyi.category.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 基地菜品分类管理对象 category
 * 
 * @author ruoyi
 * @date 2024-07-19
 */
public class Category extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 菜品分类id */
    private Long id;

    /** 分类名 */
    @Excel(name = "分类名")
    private String cname;

    /** 是否删除 */
    private Long del;

    /** 外键 */
    private Long baseId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCname(String cname) 
    {
        this.cname = cname;
    }

    public String getCname() 
    {
        return cname;
    }
    public void setDel(Long del) 
    {
        this.del = del;
    }

    public Long getDel() 
    {
        return del;
    }
    public void setBaseId(Long baseId) 
    {
        this.baseId = baseId;
    }

    public Long getBaseId() 
    {
        return baseId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("cname", getCname())
            .append("updateTime", getUpdateTime())
            .append("del", getDel())
            .append("baseId", getBaseId())
            .toString();
    }
}
